
<h2 align="center">维修单</h2>

<div class="view_1">
<table>
	<tr>
		<td width="60%" valign="top">
		<fieldset style="border: 0px;">
		<h3>委托方：{[$result.customer_x->fullname]}</h3>
		地址：{[$result.customer_x->address]}<br />
		电话：{[$result.customer_x->tel]}-{[$result.emp_x.exten]} 传真：{[$result.customer_x->fax]}<br />
		{[$result.emp_x.name]} 电邮：{[$result.emp_x.email]}</fieldset></td>
		<td width="10%"></td>
		<td width="30%">
		<fieldset>
		<table>
			<tr>
				<td align="right">编号</td>
				<td><img src="{[$root]}?do=Maintain.ajax_barcode&s={[$result.id]}"></td>
			</tr>
		</table>
		</fieldset>
		</td>
	</tr>
</table>
</div>

<div class="view_1">
<table>
	
	<tr>
		<td width="60%" valign="top">
		<fieldset style="height: 60px;">
		<h3>受托方：{[$result.supplier_x->fullname]}</h3>
		地址：{[$result.supplier_x->address]}<br />
		电话：{[$result.supplier_x->tel]} 传真：{[$result.supplier_x->fax]}<br />
		{[$result.supplier_x->contact]} 手机：{[$result.supplier_x->mobile]} 电邮：{[$result.supplier_x->email]}</fieldset>
		</td>
		<td width="1%"></td>
		<td width="39%" valign="top">
		<fieldset style="height: 60px">订单日期：{[$result.date]}<br />		
		预计交付：{[$result.expect]}<br />
		订单金额：{[$result.currency]} {[$result.amount|money]}<br />
		结算方式：{[$result.currency_t]} {[$result.type]} {[if $result.tax ne 0]}税率：{[$result.tax|string_float]}%{[else]}不含税{[/if]}
		</fieldset>
		</td>
	</tr>
</table>
</div>

<div class="view_3">
<table>
	<tr>
		<td colspan="7" valign="top" style="height: 60px; font-size:12px;">
		机器故障：<br/>
		{[$result.name|nl2br]}</td>	
	</tr>
	<tr>
		<td colspan="7" valign="top" style="height: 60px; font-size:12px;">维修内容:<br/>
		{[$result.maintain|nl2br]}</td>	
	</tr>
	<tr align="center">
		<td>序号</td>
		<td>配件或项目</td>
		
		<td>单位</td>
		<td>数量</td>
		<td>单价</td>
		<td>小计</td>

		<td>备注</td>	
	</tr>
	{[foreach name=outer key=key item=item from=$result.item]} 
	{[assign var="no" value="`$key+1`"]} 
	{[assign var="totals" value="`$totals+$item.total`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.name]}</td>
		
		<td>{[$item.unit]}</td>
		<td>{[$item.quantity|string_float]}</td>
		<td>{[$item.price]}</td>
		<td>{[$item.amount|money]}</td>
		
		<td>{[$item.content|truncate:30]}</td>
	</tr>
	{[/foreach]}
	{[foreach name=outer key=key item=item from=$blank]}
	<tr align="center">
		<td>&nbsp;</td>
		<td></td>
		
		<td></td>
		<td></td>
		<td></td>
		
		<td></td>
		<td></td>
	</tr>
	{[/foreach]}	
	<tr>
		<td colspan="5" align="center">总计（大写）{[$result.currency_t]} {[$result.amount|rmb]}</td>
		<td align="center">{[$result.amount|money]}</td>
		<td></td>
	</tr>
	
	<tr>
		<td colspan="7" valign="top" style="height: 60px; font-size:12px;">备注：<br/>
		<br/>
	交货地点：{[$result.address]}<br/>
	{[$result.content|nl2br]}</td>	
	</tr>
	<tr>
		<td colspan="7" style="font-size:12px;">条款：
		<ol>
			<li>本单为双方已签订的《合作协议》的合法组成部分，并经双方签字或盖章确认回传即发生法律效力；</li>
			<li>本单明确载明的特殊事项除外，未明确事项均按照双方已签订的《合作协议》约定履行；</li>
			{[if $result.tax ne 0]}<li>本单中所有物料的单价均为含税价格，税率为{[$result.tax|string_float]}%；{[/if]}</li>
			<li>与本交易有关的任何争议，均应提交给委托方所在地仲裁委员会裁解；</li>			
		</ol>
		</td>
	</tr>
</table>
</div>

<br/>
<div class="view_1">
<table>
	<tr height="100px">
		<td width="45%" valign="top">Prepared by:<br />
		For and on behalf of
		<h3>{[$result.customer_x->fullname]}</h3>
		</td>
		<td width="10%"></td>
		<td width="45%" valign="top">Confirmed & Accepted by:<br />
		For and on behalf of
		<h3>{[$result.supplier_x->fullname]}</h3>
		</td>
	</tr>
	<tr>
		<td align="right">年　　　月　　　日　　　
		<hr />
		Authoriazed Signature & Company Chop</td>
		<td></td>
		<td align="right">年　　　月　　　日　　　
		<hr />
		Authoriazed Signature & Company Chop</td>
	</tr>
</table>
</div>

<link type="text/css" href="inc/print.css?r={[$smarty.now]}" rel="stylesheet">
